<#-- 导入变量定义文件 -->
<#include "../template/include/assign.ftl">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>供货商信息临时表（临时接口）</title>
<#include "../template/include/source.ftl">
<link href="${web_static}/admin/css/list.css" rel="stylesheet" type="text/css" />
<style type="text/css">
	.page{
		float:right;
		padding-top: 15px;
		margin-right: 15px;
	}
</style>
</head>
<#include "../template/template_listPage.ftl">
<body class="list">
	<script type="text/javascript">
	$().ready( function() {
		<#if actionErrors??&&(actionErrors?size > 0)>
			$.dialog({type: "warn", content: "<#list errorMessages as list>${list}<br></#list>",
			 modal: true, autoCloseTime: 3000});
		</#if>
	
	});
	
	function deleterSupplierTmp(id){
	 var result = confirm("你确认要删除吗?");
	 if (result) {
		var url="${web_base}/recharge/supplier_tmp!delete.htm?id="+id;
		document.forms[0].action=url;
		document.forms[0].submit();
	}
    }
	</script>
	<div class="body">
		<div class="listBar">
			<h1><span class="icon">&nbsp;</span>供货商信息临时列表&nbsp;</h1>
		</div>
		<@pageList page=(page!) id="listForm" query="supplierTmpQuery" isEmpty=true >
		<div class="operateBar">
			<label>查找:</label>
			<select name="property">
				<option value="name" <#if property?default("") == "name">selected="selected" </#if>>
					供货商名称
				</option>
			</select>
			<label class="searchText"><input type="text" name="keyword" value="${keyword!}" /></label><input type="submit" id="searchButton" class="searchButton" value="" />
		</div>		
		<table class="listTable">
			<tr>
				<th>
					<span class="sort">供货商名称</span>
				</th>
				<th>
					<span class="sort">对应渠道接口</span>
				</th>
				<th>
					<span class="sort">是否启用</span>
				</th>
				<th>
					<span class="sort">开始时间</span>
				</th>
				<th>
					<span class="sort">到期时间</span>
				</th>
				<th>
					操作
				</th>								
			</tr>
		<#if  page??&&page.list??&&(page.list?size gt 0) >
		<#list page.list as entry>
			<tr>
				<td>
					${(entry.name)!}<#if entry.type??&&entry.type==false>[卡冲接口]</#if>
				</td>
				<td>
					${(entry.interfaceName)!}
				</td>
				<td>
					${(entry.enable)?default(true)?string('是','否')}
				</td>
				<td>
				<#if entry.startTime?exists&&entry.startTime?is_date>
					${entry.startTime?string("yyyy-MM-dd")}
				</#if>
				</td>
				<td>
				<#if entry.endTime?exists&&entry.endTime?is_date>
					${entry.endTime?string("yyyy-MM-dd")}
				</#if>
				</td>
				<td>
				    <#if entry.displosed?string('true','false')=="false"><a href="${web_base}/recharge/supplier_tmp!synchronous.htm?id=${(entry.id)!}" title="同步到供应商">[同步]</a>
				    <#else>已同步</#if>
					<a href="javascript:void(0);" onclick="deleterSupplierTmp('${(entry.id)!}');return false;" title="删除">[删除]</a>
				</td>				
			</tr>
		</#list>
		<#else>
		    <tr><td colspan="6">
			<div class="noRecord">
				没有找到任何记录!
			</div>	
			</td></tr>
		</#if>
		</table>
		</@pageList>
	</div>
</body>
